<template>
  <div class="feeds-activity-container">
    <div class="title">
      <h2>更多活动</h2>
    </div>
    <!-- 活动列表 -->
    <div class="feeds-list">
      <!--  -->
      <feeds-item
        v-for="(feed, index) in feedsList"
        :key="index"
        :pic_url="feed.covers[0].url"
        :title="feed.title"
        :name="feed.addresses && feed.addresses[0].name"
        :time="feed.addresses && feed.time"
        :price_desc="feed.price_desc"
        :card_price="feed.go_card_discounted_price"
        :plus_price="feed.go_card_discounted_price"
        :view_count="feed.view_count"
        :reason_text="feed.reason_text"
        :post_covers="feed.post_covers"
        :feed_id="feed.id"
        :tiny_title="feed.tiny_title"
      ></feeds-item>
    </div>
  </div>
</template>

<script>
import FeedsItem from '../public-component/FeedsItem.vue'
export default {
  name: 'feeds',
  props: {
    feedsList: Array
  },
  components: {
    FeedsItem
  }
}
</script>

<style lang="less" scoped>
.feeds-activity-container {
  margin-top: 20px;
  padding: 10px;
  padding-bottom: 0;

  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    h2 {
      font-size: 18px;
      font-weight: 700;
      color: #000;
    }
  }

  .feeds-list {
    margin-top: 15px;
  }
}
</style>
